<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>webshell</title>
    <style>
        #terminal{
            width: 650px;
            height: 450px;
            background: black;
            color:white;
            overflow-y: auto;
        }
        #insert{
            border:none;
            background: black;
            color:white;
            width: 500px;
        }
        #insert:focus{
            outline:none;
        }
    </style>
    <link rel="stylesheet" href="/static/css/bootstrap.min.css">
    <script src='/static/js/jquery.min.js'></script>
    <script src='/static/js/bootstrap.min.js'></script>
    <script src='/static/js/reconnecting-websocket.min.js'></script>
</head>
<body>
    <div class='container'>
        <div class='row'>
            <div class='col-md-8 col-md-offset-2'>
                <div id='terminal'>
                    #<input id='insert' onkeydown="keydown()">
                </div>
            </div>
        </div>
    </div>
    <script>
        function keydown() {
            var event = arguments.callee.caller.arguments[0] || window.event; //调节浏览器兼容
            if (event.keyCode == 13) {
                alert("你刚点了回车键")
            }
        }
    </script>
</body>
</html>